/*
@STI LICENSE
(C) 2006-2008 Universit�t Innsbruck.

This file is part of myOntology.

myOntologyis free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

myOntologyis distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with myOntology.  If not, see <http://www.gnu.org/licenses/>.

@STI LICENSE */
package controller.sesameDataConnector;



public class ClassConnector extends AbstractDataConnector {
	
	


	// ######################################################################################
	// ######################################################################################
	
	
	/**
	 * returns all Datatypeproperties where a given class is in Range 
	 * @return	List of URIs of the classes which are in range
	 * @param clurl 	The URI of the Class for which the datatypeproperty should be found
	 *//*
	public static ArrayList<URI> selectAllObjectPropertiesHavingClassInRange( URI id) throws Exception {
		ArrayList<URI> ret = null;
		
		try{	
			RepositoryConnection con = getConnection();
						
			try {
				RepositoryResult<Statement> statements = con.getStatements(null, Vocabulary.RANGE, id, false);
				try {
					if( statements.hasNext() )
						ret = new ArrayList<URI>();
					
					while (statements.hasNext()) {
						
						ret.add( (URI)statements.next().getSubject() );
					}
				} finally {
					statements.close();
				}
			}finally {
				con.close();
			}
			
		} catch (Exception e) {
			System.out.println("Error while getAllObjectPropertiesHavingClassInRange " + e.getMessage());
			throw e;
		}
		
		return ret;
	}
	*/
	
	
}
